package com.mycompany.oj.service;

import com.mycompany.oj.entity.*;

import java.util.List;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

/**
 *
 * @author asus
 */
public interface TeacherService {

    //获取管理员头像
    public String getAdminPicure(String username);

    //获取管理员名字
    public String getAdminName(String username);

    //获取每日的提交量
    public List<EveryDayInformation> getEverydayPostNumberService();

    //获取所有学生的情况
    public List<AllStudentInformation> getAllStudentInformation(String grade);

    //返回注册的用户数，蓝桥杯题库数，
    public Adminnumber getNumber();

    //获取章节和课程信息
    public QuestionCourseNumber getSectionInformation();
    //修改题目
    public boolean doChangeQuestion(String question_name, String question_txt, String question_id);
    //获取课程汇总情况
    public CourseSummarize courseSummarize(String coursename);
    //补充课程消息
    public List<QuestionSummary> addCourseInformation(String coursename);
    //删除题目
    public JsonResult deleteQuestion(String id);
    //实验情况
    public List<ProjectSituation> prjectSituation(String coursename);
    //获取各个实验题目数量
    public List<Map<String,Object>> questionNumber();
    //上传题目
    public JsonResult Importquestion(@RequestParam("file") MultipartFile file);
    //上传实验题库
    public JsonResult ImportCoursequestion(@RequestParam("file") MultipartFile file);
}
